import { View } from "@tarojs/components";

type EmptyProps = {
  text?: string;
}

export function Empty(props: EmptyProps) {
  return (
    <View
      style={{
        display: 'flex',
        justifyContent: 'center',
        alignItems: 'center',
        height: '100px',
        color: '#999',
      }}
    >
      {props.text || '暂无数据'}
    </View>
  )
}
